#! /usr/bin/python
import wx
from wx import xrc

class MyApp(wx.App):

    def OnInit(self):
        self.res = xrc.XmlResource("my.xrc")
        self.InitFrame()
        self.Initothers()
        return True

    def InitFrame(self):
        self.frame = self.res.LoadFrame(None, "MainFrame")
        self.panel = xrc.XRCCTRL(self.frame, "MainPanel")

    def Initothers(self):
        self.frame.Show()

def main():
    app = MyApp(0)
    app.MainLoop()
if __name__ == '__main__':
    main()
